package com.fh.service.building.park;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.util.CodeConstants;
import com.fh.util.DateUtil;
import com.fh.util.PageData;
import com.fh.util.StringHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("parkService")
public class ParkService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	/*
	* 停车场 列表
	*/
	public List<PageData> list(Page page)throws Exception{
		return (List<PageData>)dao.findForList("ParkMapper.datalistPage", page);
	}


	public void save(PageData pd) throws Exception{
		dao.save("ParkMapper.save",pd);
	}

	public List<PageData> findlist(PageData pd) throws Exception{
		return (List<PageData>)dao.findForList("ParkMapper.findlist", pd);

	}
}

